<layout name='Layout/layout_page' />

	<ol class="breadcrumb">
		<li><a href="<{:U('Baoxian/index')}>">交强险信息</a></li>
      	<li class="active">列表</li>
    </ol>

    <form class="form-inline" method="post" action="<{:U('Baoxian/index')}>">
        <div class="form-group">
            <label>手机</label>
            <input type="text" class="form-control input-sm" name="key">
        </div>
        <button type="submit" class="btn btn-default btn-sm">搜索</button>
    </form>

    <p></p>	
	
	<form id="ajaxForm" method="post" action="<{:U('Baoxian/del')}>" name="form1" class="form-horizontal form-validata">
	<TABLE class="table table-striped table-bordered table-hover">
	  <THEAD>
		<tr>
		  <TH><input class="checkall" name="checkall" type="checkbox" id="checkall" onClick="CheckAll(this.form)"/> 全选</TH>
		  <TH>产品单号</TH>
		  <TH>保险单号</TH>
		  <TH>产品</TH>
		  <TH>姓名</TH>
		  <TH>电话</TH>
		  <TH>车船税</TH>
		  <TH>状态</TH>
		  <TH>提交日期</TH> 
		  <TH>操作</TH>
		</tr>
	  </THEAD>
	  <TBODY>             
			<volist name="list" id="vo">
			<tr>
			  <td><input type="checkbox" name="selectedids[]" value="<{$vo.id}>" id="<{$vo.id}>"> <{$vo.id}></td>
			  <td><{$vo.order_no}></td>
			  <td><{$vo.bx_no}></td>
			  <td><{$vo.pname}></td>
			  <td><{$vo.name}></td>
			  <td><{$vo.mobile}></td>
			  <td><eq name="vo.chechuanshui" value="0">代缴<{$vo.money}>元(<eq name="vo.payStatus" value="0"><font color="red">未支付</font><else/>已支付</eq>)<else/>已交</eq></td>
			  <td><eq name="vo.status" value="0"><span style="color:#f00">处理中</span><else/>已处理</eq></td>
              <td><{$vo.createTime|date='Y-m-d H:i:s',###}></td>
			  <td>  
			  <a class="btn btn-default btn-sm" href="javascript:void(0)" onclick="showModel('<{:U('Baoxian/view',array('id'=>$vo['id']))}>')"><i class="glyphicon glyphicon-eye-open"></i> 查看</a>
			  </td>
			</tr>
			</volist>
	  </TBODY>
	</TABLE>

	<div class="row">
		<div class="col-md-6">
			<button class="btn btn-info btn-sm" onClick="if(!confirm('删除后不可恢复！确定吗？'))return false;"><i class="glyphicon glyphicon-trash"></i> 删除选中信息</button>
		</div>
		
		<div class="col-md-6">
			<div class="page">
				<nav>
  					<ul class="pagination"><{$page}></ul>
  				</nav>
  			</div>
		</div>
	</div>
	</form>

<script>
function showModel(remote){
  $('#myModal').modal({
    remote : remote
  });

  $("#myModal").on("hidden.bs.modal", function() {
    $(this).removeData("bs.modal");
  })
}
</script>     
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
      <div class="modal-content"></div>
  </div>
</div>

<input type="hidden" id="menu_action" value="baoxian" />